package com.angenin.springcloud.controller;

import com.angenin.springcloud.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2021/4/19 10:27
 * @Version: 1.0
 */
@RestController
public class FlowLimitController {

//    @GetMapping("/testA")
//    public String testA() {
//        return "----testA";
//    }
//
//    @GetMapping("/testB")
//    public String testB() {
//        return "----testB";
//    }

    @Resource
    TestService testService;

    @GetMapping("/testA")
    public String testA() {
        testService.getTest();
        return "----testA";
    }

    @GetMapping("/testB")
    public String testB() {
        testService.getTest();
        return "----testB";
    }


}

